export default {
  actions: [{
    code: 'add',
    type: 'add',
    name: '添加'
  }, {
    code: 'edit',
    locate: 'inline',
    name: '编辑'
  }, {
    code: 'delete',
    scope: 'rows'
  }, {
    code: 'listView',
    locate: 'inline',
    type: 'listView',
    name: '数据预览',
    path: '/service/{app}/dataset/data/{code}'
  }, {
    code: 'nodePublish',
    type: 'nodePublish',
    name: '生成节点',
    locate: 'inline',
    icon: 'upload',
    path: 'service/{app}/dataset/model/exp',
    param: {
      condition: '!data.enable_publish'
    }
  }, {
    code: 'recall',
    type: 'process',
    locate: 'inline',
    icon: 'ios-download',
    name: '撤回节点',
    path: 'service/{app}/dataset/model/recall/{id}',
    param: {
      condition: 'data.node_enbale'
    }
  }]
}
